
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
	<tr><td colspan="6" class="t_bar">&nbsp;单位基本信息</td></tr>
	<tr>
		<td width="120px" nowrap align="right">单位名称：</td>
		<td colspan='5'>
		    <input type="hidden" name="organizations/organization[0]@submit_org" value="1" > 
			<input type="hidden" name="organizations/organization[0]@sequence_no" value="1" >
			<input type="hidden" name="organizations/organization[0]/org_code" 
							value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
			<span name="organizations/organization[0]/cname">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
		<td align="right">法人代码：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/org_no">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_no"/>
			</span>
		</td>
		<td nowrap align="right">营业执照注册号：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/org_licence">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_licence"/>
			</span>
	    </td>
	    <td nowrap align="right">生产、办公面积：</td>
		<td width="200px">
		   	<c:set var="office_develope" scope="page"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/office_develope"/></c:set>
			<c:set var="office_product" scope="page"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/office_product"/></c:set>
		    <span name="organizations/organization[0]/office_product">${(empty office_develope ? 0 : (office_develope=='由系统统计' ? 0 : office_develope))+(empty office_product ? 0 : (office_product=='由系统统计' ? 0 : office_product))}</span>&nbsp;平方米
	    </td>
    </tr>
    <tr>
		<td align="right">注册类型：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/nature_name">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/nature_name"/>
			</span>&nbsp;
		</td>
		<td nowrap align="right">国税登记证号：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/tax_internal_no">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/tax_internal_no"/>
			</span>
	    </td>
	    <td width="150px"  align="right">地税登记证号：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/tax_local_no">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/tax_local_no"/>
			</span>&nbsp;
	    </td>
    </tr>
        <tr>
		<td  align="right">注册时间：</td>
		<td >
		    <span name="organizations/organization[0]/registe_date">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_date"/>
			</span>&nbsp;
		</td>
		<td align="right">注册资金：</td>
		<td >
		    <span name="organizations/organization[0]/registe_fund">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund"/>万<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_money_name" />
			</span>
	    </td>
	    <td  align="right">其中外资比例(%)：</td>
		<td >
		    <span name="organizations/organization[0]/registe_fund_foreign_rate">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_foreign_rate"/>
			</span>&nbsp;
	    </td>
    </tr>

    <tr>
        <td  nowrap align="right">通讯地址：</td>
		<td >
			<span name="organizations/organization[0]/address">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/address"/>
			</span>&nbsp;
		</td>
		 <td  nowrap align="right">电子邮箱：</td>
		<td colspan='3'>
			<span name="organizations/organization[0]/email">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/email"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
      <td  nowrap align="right">传真：</td>
		<td >
			<span name="organizations/organization[0]/fax">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/fax"/>
			</span>&nbsp;
		</td>
        <td  nowrap align="right">单位网址：</td>
		<td colspan='3'>
			<span name="organizations/organization[0]/http">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/http"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
		<td  nowrap  align="right">公司员工人数：</td>
		<td >
		    <span
			name="organizations/organization[0]/people_count_total"> <x:out
					select="$xmlData/data/organization_persons/people_count_total" />
		</span>人
		</td>
		<td nowrap align="right">其中：大专以上人员数：</td>
		<td>
		    <span name="organizations/organization[0]/degree_total" id="degree_total"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/degree_total" /></span>人
		    <input type="hidden" id='degree_college' value="<x:out select='$xmlData/data/organization_persons/degree_college' />">
		    <input type="hidden" id='degree_bachelor' value="<x:out select='$xmlData/data/organization_persons/degree_bachelor' />">
		    <input type="hidden" id='degree_master' value="<x:out select='$xmlData/data/organization_persons/degree_master' />">
		    <input type="hidden" id='degree_doctor' value="<x:out select='$xmlData/data/organization_persons/degree_doctor' />">
		    <script type="text/javascript">
	           $(function() {
		             var degree_college=$("#degree_college").val();
		             var degree_bachelor=$("#degree_bachelor").val();
		             var degree_master=$("#degree_master").val();
		             var degree_doctor=$("#degree_doctor").val();
		             var count=parseInt(degree_college)+parseInt(degree_bachelor)+parseInt(degree_master)+parseInt(degree_doctor);
		             $("#degree_total").text(count);
	           });
            </script>
	    </td>
	    <td nowrap align="right">其中：研发人员数：</td>
		<td>
		    <span
			name="organizations/organization[0]/work_yanfa"> <x:out
					select="$xmlData/data/organization_persons/work_yanfa" />
		</span>人
	    </td>
    </tr>
    
     <tr>
        <td align="right">单位法定代表人：</td>
		<td>
			<input type="hidden"
			  name="organization_persons/organization_person[00]@psn_type" value="faren">
			<span name="organization_persons/organization_person[00]/cname">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname"/>
			</span>
			
		</td>
		<td align="right">
			<input type="hidden" name="organization_persons/organization_person[00]/id_type_name" value="<x:out select="$xmlData/data/organization_persons/person[@type='faren']/id_type_name"/>"/>
			<x:out select="$xmlData/data/organization_persons/person[@type='faren']/id_type_name"/>：</td>
		<td width="250px">
			<span name="organization_persons/organization_person[00]/id_no">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/id_no"/>
			</span>
		</td>
		<td align="right">手机：</td>
		<td>
			<span name="organization_persons/organization_person[00]/mobile">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/mobile"/>
			</span>
		</td>
    </tr>
    <tr>
        <td align="right">单位负责人：</td>
		<td>
			<span name="organization_persons/organization_person[01]/cname">
				<x:out
					select="$xmlData/data/organization_persons/person[@type='fuzeren']/cname" />
			</span>
			<input type="hidden"
				  name="organization_persons/organization_person[01]@psn_type" value="fuzeren">
		</td>
		<td align="right">
			<input type="hidden" name="organization_persons/organization_person[01]/id_type_name" value="<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/id_type_name"/>"/>
			<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/id_type_name"/>：</td>
		<td>
			<span name="organization_persons/organization_person[01]/id_no">
				<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/id_no"/>
			</span>
		</td>
		<td align="right">手机：</td>
		<td>
			<span name="organization_persons/organization_person[01]/mobile">
				<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/mobile"/>
			</span>
			<input type="hidden" name="organization_persons/organization_person[01]/tel" value="<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/tel"/>">
		</td>
    </tr>
    <tr>
        <td align="right">单位联系人：</td>
		<td>
			<span name="organization_persons/organization_person[02]/cname">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_name"/>
			</span>&nbsp;
			<input type="hidden"
				  name="organization_persons/organization_person[02]@psn_type" value="lianxiren">
		</td>
		<td align="right">联系电话：</td>
		<td>
			<span name="organization_persons/organization_person[02]/tel">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_tel"/>
			</span>&nbsp;
		</td>
		<td align="right">手机：</td>
		<td>
			<span name="organization_persons/organization_person[02]/mobile">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_mobile"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
		<td align="right">开户银行：</td>
		<td >
		    <span name="organizations/organization[0]/bank_orgname">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_orgname"/>
			</span>&nbsp;
		</td>
		<td align="right">银行账号：</td>
		<td >
		    <span name="organizations/organization[0]/bank_account">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_account"/>
			</span>&nbsp;
	    </td>
	    <td align="right">信用等级：</td>
		<td >
		    <span name="organizations/organization[0]/bank_credit">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_credit"/>
			</span>&nbsp;
	    </td>
    </tr>
    <tr>
        <td align="right">经营范围：</td>
		<td colspan='5'>
			<span name="organizations/organization[0]/opt_scope">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/opt_scope"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
        <td align="right"><span class="color_red">*</span>单位特性：</td>
		<td colspan='5' >
			<label style="margin-right:28px;"><input type="checkbox" name="chk_characteristic1" value="01" label="国家高新技术企业" class="do">1、国家高新技术企业</label>
			<label style="margin-right:30px;"><input type="checkbox" name="chk_characteristic1" value="02" label="深圳市高新技术企业  " class="do">2、深圳市高新技术企业 </label>
			<label><input type="checkbox" name="chk_characteristic1" value="03" label="其他科技型企业" class="do">3、其他科技型企业 </label>
			<br>
			<label style="margin-right:40px;"><input type="checkbox" name="chk_characteristic1" value="04" label="高校、科研机构 " class="do">4、高校、科研机构 </label>
			<label><input type="checkbox" name="chk_characteristic1" value="05" label="其他 " class="do">5、其他 </label>
			
			<input type="hidden" name="proposal/chk_characteristic1_value" label="单位特性" class="required" value="<x:out select="$xmlData/data/proposal/chk_characteristic1_value" />" />
			<input type="hidden" name="proposal/chk_characteristic1_name"  value="<x:out select="$xmlData/data/proposal/chk_characteristic1_name" />" />
		</td>
    </tr>
    <tr>
		<td align="right" nowrap><span class="color_red">*</span>近两年银行贷款总额：</td>
		<td >
		<input name="proposal/loan_ceiling" id="loan_ceiling" label="近两年银行贷款总额" class="required valueGreatEqual:loan_ceiling:balance" style="text-align:right;width:130px;"
			onfocus="InitInput.setNumber(this,7,4,2);" onchange="repayClean(this.id,'repay','colorRed');" value="<x:out select="$xmlData/data/proposal/loan_ceiling" />"/>万元
		</td>
		<td align="right"><span class="color_red">*</span>余额：</td> 
		<td >
		    <input name="proposal/balance" id="balance" label="余额" style="text-align:right;width:130px;" onfocus="InitInput.setNumber(this,7,4,2)" class="required" value="<x:out
					select="$xmlData/data/proposal/balance" />"/>万元
	    </td>
	    <td nowrap align="right"><span class="color_red" id="colorRed">*</span>到期偿还情况：</td>
		 <td >
		<c:set var="repay_value"><x:out select="$xmlData/data/proposal/repay_value" /></c:set>
		<input name="proposal/repay_value" id="repay_value" type="hidden" value="<x:out select="$xmlData/data/proposal/repay_value" />"  label="近两年银行贷款总额中的到期偿还情况"/>
		<input name="proposal/repay_name" id="repay_name" type="hidden" value="<x:out select="$xmlData/data/proposal/repay_name" />" />
		<cpt:select id="repay" key="repay"  onChange="initControlValue('repay')"  value="${repay_value}"></cpt:select> 
	    </td>
	  </tr>
</table>
<br>
<div class="t_bar">
	主要股东
</div>
	<table border="0" cellspacing="0" cellpadding="0" class="table01" >
		<thead>
			<tr>
				<th align="center" width="40%"  nowrap>主要股东名称</th>
				<th width="20%" align="center">股东出资额(万元)</th>
				<th width="20%">出资形式</th>
				<th width="20%">所占股份比例（%）</th>
				
			</tr>
		</thead>
		<tbody id="tab">
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/organization_shareholders/shareholder" var="shareholder">
			    <c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
					<td align="center">
						<span style='display:none' name="organizations/shareholders/shareholder[${flag}${index}]@sequence_no">${index+1}</span>
						<span name="organizations/shareholders/shareholder[${flag}${index}]/cname">
						     <x:out select="$shareholder/cname" />
						</span>
					</td>
					<td align="center">
						<span name="organizations/shareholders/shareholder[${flag}${index}]/invest_amount">
						     <x:out select="$shareholder/invest_amount" />
						</span>
					</td>
					<td align="center">
						<span name="organizations/shareholders/shareholder[${flag}${index}]/invest_type_name">
						     <x:out select="$shareholder/invest_type_name" />
						</span>
					</td>
					<td align="center">
						<span name="organizations/shareholders/shareholder[${flag}${index}]/invest_percent">
						     <x:out select="$shareholder/invest_percent" />
						</span>
					</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
			</tbody>
	</table>
<br>
<div class="t_bar">
	机构拥有知识产权状况: （单位：件）
</div>
<table class="table01" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
	<tr>
		<th rowspan="2">专利申请总数</th>
		<th colspan="3">其中</th>
		<th rowspan="2">专利授权总数</th>
		<th colspan="3">其中</th>
		<th rowspan="2">软件著作权</th>
		<th rowspan="2">（IC）布图设计专有权</th>
	</tr>
	<tr>
	    <th>发明</th>
	    <th>实用新型</th>
	    <th>外观设计</th>
		<th>发明</th>
	    <th>实用新型</th>
	    <th>外观设计</th>
	</tr>
	<tbody id="tab">
	    <tr>
	        <td align="center">
	            <input type="hidden"
			       name="knowledges/knowledge[0]@sequence_no" value="1">
	            <span name="knowledges/knowledge[0]/kr_request">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request" />
	            </span>&nbsp;
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_invent">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_invent" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_new">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_new" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_outward">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_outward" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_invent">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_invent" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_new">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_new" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_outward">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_outward" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_soft">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_soft" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_ic">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_ic" />&nbsp;
	            </span>
	        </td>
	    </tr>
	</tbody>
</table>

<br>
<div class="t_bar">近三年曾获政府资助的情况（金额：万元）</div>
<table border="0" cellspacing="0" cellpadding="0" class="table01">
	<thead>
		<tr>
			<th align="center" width="10%" nowrap>项目名称</th>
			<th width="10%" align="center">资助部门</th>
			<th width="10%">资助时间</th>
			<th width="10%">资助金额</th>
			<th width="10%">项目验收情况</th>
			<th width="10%">验收时间</th>
			<th width="10%" nowrap="nowrap">资助形式</th>
			<th width="10%">借款偿还情况</th>
			<th width="10%">还款时间</th>
		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/organization_research/fund_project" var="research">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/ctitle"> <x:out
							select="$research/ctitle" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/award_dept"> <x:out
							select="$research/award_dept" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/award_date"> <x:out
							select="$research/award_date" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/award_amt"> <x:out
							select="$research/award_amt" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/accept_flag_name">
						<x:out select="$research/accept_flag_name" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/accept_date"> <x:out
							select="$research/accept_date" />
				</span></td>
				<td align="center">
					<span name="research/fund_project[${flag}${index}]/award_type_name">
							<x:out select="$research/award_type_name" />
					</span>
					<input type="hidden" name="research/fund_project[${flag}${index}]/award_type_value" value="$research/award_type_value"/>
				</td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/repay_flag_name">
						<x:out select="$research/repay_flag_name" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/repay_date"> <x:out
							select="$research/repay_date" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<script type="text/javascript">

$(document).ready (function() {
	repayClean('loan_ceiling','repay','colorRed');
	
});
function repayClean(obj,string1,string2){
	var value=$("#"+obj).val();
	
	if(value==0){
		$("#"+string1+"_value").removeClass("required");
		$("#"+string1).attr("disabled",true);
		$("#"+string2).hide();
		$("#"+string1).val("");
		$("#"+string1+"_value").val("");
		$("#"+string1+"_name").val("");
	}
	else
		{
		$("#"+string1+"_value").addClass("required");
		$("#"+string1).attr("disabled",false);
		$("#"+string2).show();
		}
	
}
</script>